package com.scott.spring.ch07.service;

import org.springframework.beans.factory.InitializingBean;

/**
 * @author 黄后林
 * @version 1.0
 * @date 2021-12-14 13:46:47
 */
public class RoleService{
    public RoleService() {
        System.out.println("--------执行ch07#RoleService--------");
    }


    public void initMethod()  {
        System.out.println("--------执行ch07#initMethod--------");
    }

    public int add(int x,int y){
        System.out.println("--------执行ch07#add--------");
        int sum =x+y;
        return sum;
    }
}
